home *** CD-ROM | disk | FTP | other *** search
- Subject: RE: ODF Popups
- Sent: 6/24/96 10:56 AM
- Received: 6/24/96 11:11 AM
- From: Laurent Delamare, laurentd@apple.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >Laurent,
- >Thanks for your clues. But unfortunately it's not the solution. I did have a
- >MENU resource available! When I compared the ODF-sample Forms with my
- >resource I noticed that the only difference was the font. I want to display
- > the popup in GENEVA 9. The sample uses the system font.
-
- Leo
-
- OK, I found the bug. When a popup resource both uses a custom font and a
- menu
- variation of 4 the procId is increased by 12 and the macro IS_POPUP_PROCID
- returns false instead of true in FWContrH.cpp.
-
- The only work-around is to patch FWContrH.cpp as follows and rebuild your
- Framework library:
-
- #define IS_POPUP_PROCID(id) (id >= popupMenuProc && id <= popupMenuProc
- + 15)
-
- > In FWContrH.cpp the procId is
- >raised with kControlUsesOwningWindowsFontVariant. I was unable to find this
- >constant, but I figure that it's popupUseWFont as described in Inside
- >Macintosh.
-
- Yes, kControlUsesOwningWindowsFontVariant = popupUseWFont = 8 and is
- defined
- in the Apple header controls.h
-
- > This means that the font of the owning window is used. Where is it
- >defined in ODF? In my resource there is only a position of the superview.
- >
-
- No, this means that the font used by the popup is the one of the grafport
- at the time the popup is created. ODF sets the font for that effect in
- PrivMacControlHelper::Initialize(). You don't need to worry about
- getting
- the window's font.
-
- Hope this helps,
-
-
- ______________________________________________________________________
- Laurent Delamare laurentd@apple.com
- ODF Team http://www.devtools.apple.com/odf/
- Apple Computer, Inc. http://www.opendoc.apple.com/
-